package com.sporadic.backstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商家会员等级详情
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_rank")
public class UserRank {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//商家会员等级编号
    @TableField("name")
    private String name;//会员等级名
    @TableField("begin_level")
    private Integer begin_level;//等级开始范围
    @TableField("end_level")
    private Integer end_level;//等级结束范围
    @TableField("discount")
    private BigDecimal discount;//会员所享折扣
    @TableField("user_rank_merchant")
    private Integer user_rank_merchant;//会员对应商家
}
